package gui.single_game.logic;

import java.util.ArrayList;
import main.CyclingManager;
import data.Cyclist;
import data.Team;

public class Race {
	
	private ArrayList<Team> teams;
	private ArrayList<Cyclist> cyclists;
	
	public Race(ArrayList<Integer> myTeam, ArrayList<Integer>[] otherTeams) {
		
		teams = CyclingManager.getInstance().teams;
		cyclists = CyclingManager.getInstance().cyclists;
		
		for (int i = 0; i < otherTeams.length; i++) {
			System.out.print(teams.get(otherTeams[i].get(0)).getTeamName()+":   ");
			for (int j = 0; j < otherTeams[i].size()-1; j++) {
				System.out.print(cyclists.get(otherTeams[i].get(j + 1)).getSurname()+"    ");
			}
			System.out.println();
		}
		
	}

}
